package com.video.mall.service;

import com.video.common.domain.QueryPageDto;
import com.video.common.result.PageResult;
import com.video.common.result.ResponseResult;
import com.video.mall.domain.dto.ProductDto;
import com.video.mall.domain.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import org.elasticsearch.client.RestHighLevelClient;

import java.io.IOException;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author la
 * @since 2024-11-19
 */
public interface IProductService extends IService<Product> {

    /*
    * 分页查询商品
    * */
    PageResult queryList(QueryPageDto dto, RestHighLevelClient client) throws IOException;

    /*
    * 添加或编辑商品信息
    * */
    ResponseResult saveOrUpdateProduct(ProductDto productDto, RestHighLevelClient client) throws IOException;
}
